package com.liao.es.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "shopping")
public class Shopping {

    @Id
    private String id;
    private String name;
    private Integer price;

    public Shopping(String name, Integer price) {
        this.name = name;
        this.price = price;
    }
}
